Service implementations via resource agreements

ABSTRACT

An example electronic device includes a processor to receive, from an intent publishing device, a resource agreement associated with a service to be implemented via the intent publishing device. The processor is further to transmit the resource agreement to a claiming device. The processor is further to receive a confirmation from the claiming device, wherein the confirmation is to indicate that the claiming device is to implement the resource agreement. The processor is further to match the intent publishing device with the claiming device based on the confirmation.

BACKGROUND

In Internet of Things (IoT) context, a set of devices are connected together to sense and actuate over a defined environment. For example, a set of devices can be deployed around a house to perform a home automation service.

BRIEF DESCRIPTION OF THE DRAWINGS

Some examples of the present application are described with respect to the following figures:

FIG. 1 illustrates a system to implement a service via a resource agreement, according to an example;

FIG. 2 illustrates a message flow between an intent publishing device and a host to publish a resource agreement, according to an example;

FIG. 3 illustrates a message flow between a host and a claiming device to implement a resource agreement, according to an example;

FIG. 4 illustrates an electronic device to match an intent publishing device with a claiming device, according to an example;

FIG. 5 illustrates an electronic device to match an intent publishing device with a claiming device, according to another example;

FIG. 6 illustrates an electronic device to publish a resource agreement, according to an example; and

FIG. 7 illustrates an electronic device to implement a resource agreement, according to an example.

DETAILED DESCRIPTION

Devices deployed for a particular service (e.g., home automation, environmental sensing, etc.) may be specifically configured to implement the functions of the particular service. However, re-purposing the devices for another service after deployment may be difficult.

Examples described herein provide an approach to implement a service via a service agreement. For example, an electronic device may include a processor. The processor may receive, from an intent publishing device, a resource agreement associated with a service to be implemented via the intent publishing device. The processor may also transmit the resource agreement to a claiming device. The processor may further receive a confirmation from the claiming device, where the confirmation is to indicate that the claiming device is to implement the resource agreement. The processor may further match the intent publishing device with the claiming device based on the confirmation. In this manner, examples described herein may reduce difficulty associated with re-purposing a device for different services.

FIG. 1 illustrates a system 100 to implement a service via a resource agreement, according to an example. System 100 may include an intent publishing device 102, a host 104, and a claiming device 106. Each of intent publishing device 102, host 104, and claiming device 106 may be implemented using an electronic device, such as, a web-based server, a local area network server, a cloud-based server, a notebook computer, a desktop computer, an all-in-one system, a tablet computing device, a mobile phone, an electronic book reader, an appliance, a wearable electronic device, etc. Each of intent publishing device 102, host 104, and claiming device 106 may include a processor 108, 110, 112 to control operations of the corresponding device, respectively.

During operation, intent publishing device 102 may transmit a resource agreement (RA) 114 to host 104. RA 114 may be associated with a service that intent publishing device 102 is to implement. RA 114 may indicate a resource to be used to implement the service. The resource may be a hardware component, processor executable instructions, or a combination thereof. For example, a resource may be a camera, a sensor, a touch-sensitive display, a compass, an accelerometer, an operating system, an email client application, an Internet browser application, etc. In an example, intent publishing device 102 may implement a weather forecasting service. RA 114 may indicate that a device is to have a temperature or humidity sensor to collect data. As another example, RA 114 may indicate that a device is to have a display to present the weather forecasting data. Although one RA is shown in FIG. 1, it should be understood a particular service may have any number of RAs.

In response to a request from claiming device 106, host 104 may transmit RA 114 to claiming device 106. Claiming device 106 may determine whether claiming device 106 is to implement RA 114 (i.e., provide the resource indicated in RA 114). When claiming device 106 is to implement RA 114, claiming device 106 may transmit a confirmation 116 to host 104. Confirmation 116 may indicate that claiming device 106 is to implement RA 114.

In response to receiving confirmation 116, host 104 may match intent publishing device 102 with claiming device 106 so that claiming device 106 may provide the resource to intent publishing device 102 to implement the service. For example, host 104 may transmit identification information 118 of claiming device 106 to intent publishing device 102. Based on identification information 118, intent publishing device 102 may communicate with claiming device 106 to receive the resource. Identification information 118 may be an Internet protocol (IP) address of claiming device 106, a media access control (MAC) address of claiming device 106, or any other information that enables another device to communicate with claiming device 106.

As another example, host 104 may transmit identification information 120 of intent publishing device 102 to claiming device 106. Based on identification information 120, claiming device 106 may communicate with intent publishing device 102 to provide the resource. Identification information 120 may be an IP address of intent publishing device 102, a MAC address of intent publishing device 102, or any other information that enables another device to communicate with intent publishing device 102.

In some examples, the roles of intent publishing device 102, host 104, and/or claiming device 106 can change depending on the communication network, the type of service to be implemented, etc. For example, host 104 may be an intent publishing device in another communication network. Claiming device 106 may be an intent publishing device associated with a second service and intent publishing device 102 may be a claiming device associated with the second service.

FIG. 2 illustrates a message flow between an intent publishing device and a host to publish a resource agreement, according to an example. Before intent publishing device 102 transmits RA 114 to host 104, host 104 is to authenticate intent publishing device 102 for security purpose. Intent publishing device 102 may transmit a publishing request 202 to host 104. Publishing request 202 may include information associated with intent publishing device 102 that is to be used for authentication. For example, publishing request 202 may include a user name and a password. As another example, publishing request 202 may include identification information 118.

In response to receiving publishing request 202, host 104 may authenticate intent publishing device 102 based on publishing request 202. In some examples, host 104 may authenticate intent publishing device 102 locally. In some examples, host 104 may authenticate intent publishing device 102 via an authentication server (not shown in FIG. 2). In response to a successful authentication, host 104 may transmit an authentication message 204 to intent publishing device 102. Authentication message 204 may indicate that intent publishing device 102 is authenticated and has permission to publish any RAs to host 104. In response to receiving authentication message 204, intent publishing device 102 may transmit a service request 206 and RA 114 associated with service request 206 to host 104. Service request 206 may describe what service intent publishing device 102 is to implement and indicate RA(s) associated with the service.

FIG. 3 illustrates a message flow between a host and a claiming device to implement a resource agreement, according to an example. During operation, host 104 may generate a service catalog 302 that describes a list of services that are to be implemented by different intent publishing devices. Host 104 may transmit service catalog 302 to claiming device 106 (e.g., via broadcasting). Claiming device 106 may examine service catalog 302 to determine if any service from service catalog 302 is of interest. Claiming device 106 may transmit a request 304 to host 104 to request RA(s) associated with a particular service. Based on request 304, host 104 may transmit RA 114 to claiming device 106. Claiming device 106 may transmit confirmation 116 to host 104 to claim RA 114.

FIG. 4 illustrates an electronic device 400 to match an intent publishing device with a claiming device, according to an example. Electronic device 400 may implement host 104 of FIGS. 1-3. Electronic device 400 may include a processor 402 and a computer-readable storage medium 404.

Processor 402 be a central processing unit (CPU), a semiconductor-based microprocessor, and/or other hardware devices suitable to control operations of electronic device 400. Computer-readable storage medium 404 may be any electronic, magnetic, optical, or other physical storage device that contains or stores executable instructions. Thus, computer-readable storage medium 404 may be, for example, Random Access Memory (RAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a storage device, an optical disc, etc. In some examples, computer-readable storage medium 404 may be a non-transitory storage medium, where the term “non-transitory” does not encompass transitory propagating signals. As described in detail below, computer-readable storage medium 404 may be encoded with a series of executable instructions 406-414.

Resource agreement receiving instructions 406 may receive a resource agreement (RA) from an intent publishing device. For example, referring to FIG. 1, host 104 may receive RA 114 from intent publishing device 102. Resource agreement request receiving instructions 408 may receive a request for a particular RA from a claiming device. For example, referring to FIG. 3, claiming device 106 may transmit a request 304 to host 104 to request RA(s) associated with a particular service.

Resource agreement transmission instructions 410 may transmit an RA to a claiming device. For example, referring to FIG. 1, in response to a request from claiming device 106, host 104 may transmit RA 114 to claiming device 106. Confirmation receiving instructions 412 may receive a confirmation from a claiming device to indicate that the claiming device is to implement a received RA. For example, referring to FIG. 1, host 104 may receive confirmation 116 from claiming device 106 when claiming device 106 is to implement RA 114. Intent publishing device and claiming device matching instructions 414 may match an intent publishing device and a claiming device to enable communication between the intent publishing device and the claiming device. For example, referring to FIG. 1, host 104 may transmit identification information 118 of claiming device 106 to intent publishing device 102 to match claiming device 106 with intent publishing device 102. As another example, host 104 may transmit identification information 120 of intent publishing device 102 to claiming device 106 to match claiming device 106 with intent publishing device 102.

FIG. 5 illustrates an electronic device 500 to match an intent publishing device with a claiming device, according to another example. Electronic device 500 may be similar to electronic device 400 of FIG. 4. Electronic device 500 may include processor 402 and a computer-readable storage medium 502. Computer-readable storage medium 502 may be similar to computer-readable storage medium 404 of FIG. 4. Computer-readable storage medium 502 may be encoded with instructions 406-414 and 504-508.

Publishing request receiving instructions 504 may receive a publishing request from an intent publishing device. For example, referring to FIG. 2, host 104 may receive publishing request 202 from intent publishing device 102. Intent publishing device authenticating instructions 506 may authenticate an intent publishing device. For example, referring to FIG. 2, in response to receiving publishing request 202, host 104 may authenticate intent publishing device 102 based on publishing request 202. Authentication message transmitting instructions 508 may transmit an authentication message to an intent publishing device. For example, referring to FIG. 2, in response to a successful authentication, host 104 may transmit an authentication message 204 to intent publishing device 102.

FIG. 6 illustrates an electronic device 600 to publish a resource agreement, according to an example. Electronic device 600 may implement intent publishing device 102 of FIGS. 1-2. Electronic device 600 may include a processor 602 and a computer-readable storage medium 604. Processor 602 may be similar to processor 402 of FIG. 4. Computer-readable storage medium 604 may be similar to computer-readable storage medium 404. Computer-readable storage medium 604 may be encoded with instructions 606-610.

Intent publishing request transmitting instructions 606 may transmit a publishing request to a host. For example, referring to FIG. 2, intent publishing device 102 may transmit a publishing request 202 to host 104. Resource agreement transmitting instructions 608 may transmit an RA to a host. For example, referring to FIG. 2, in response to receiving authentication message 204, intent publishing device 102 may transmit a service request 206 and RA 114 associated with service request 206 to host 104. Authentication message receiving instructions 610 may receive an authentication message from a host. For example, referring to FIG. 2, in response to a successful authentication, intent publishing device 102 may receive authentication message 204 from host 104.

In some examples, computer-readable storage medium 604 may also be encoded with claiming device identification information receiving instructions 612. Claiming device identification information receiving instructions 612 may receive identification information of a claim device from a host. For example, intent publishing device 102 may receive identification information 118 of claiming device 106 from host 104. Based on identification information 118, intent publishing device 102 may communicate with claiming device 106 to receive resource that claiming device 106 is to provide.

FIG. 7 illustrates an electronic device 700 to implement a resource agreement, according to an example. Electronic device 700 may implement claiming device 106 of FIGS. 1 and 3. Electronic device 700 may include a processor 702 and a computer-readable storage medium 704. Processor 702 may be similar to processor 402 of FIG. 4. Computer-readable storage medium 704 may be similar to computer-readable storage medium 404 of FIG. 4. Computer-readable storage medium 704 may be encoded with instructions 706-712.

Service catalog receiving instructions 706 may receive a service catalog from a host. For example, referring to FIG. 3, claiming device 106 may receive service catalog 302 from host 104. Resource agreement request transmitting instructions 708 may transmit a request to a host to request a particular RA. For example, referring to FIG. 3, claiming device 106 may transmit a request 304 to host 104 to request RA(s) associated with a particular service.

Resource agreement receiving instructions 710 may receive a RA from a host. For example, referring to FIG. 3, claiming device 106 may receive RA 114 from host 104. Confirmation transmitting instructions 712 may transmit a confirmation to a host. For example, referring to FIG. 3, when claiming device 106 is to implement RA 114, claiming device 106 may transmit a confirmation 116 to host 104.

In some examples, computer-readable storage medium may also be encoded with intent publishing device identification information receiving instructions 714. Intent publishing device identification information receiving instructions 714 may receive identification information of an intent publishing device from a host. For example, referring to FIG. 1, claiming device 106 may receive identification information 120 of intent publishing device 102 from host 104. Based on identification information 120, claiming device 106 may communicate with intent publishing device 102 to provide the resource.

The use of “comprising”, “including” or “having” are synonymous and variations thereof herein are meant to be inclusive or open-ended and do not exclude additional unrecited elements or method steps. 

What is claimed is:
 1. An electronic device comprising: a processor to: receive, from an intent publishing device, a resource agreement associated with a service to be implemented via the intent publishing device; transmit the resource agreement to a claiming device; receive a confirmation from the claiming device, wherein the confirmation is to indicate that the claiming device is to implement the resource agreement; and match the intent publishing device with the claiming device based on the confirmation.
 2. The electronic device of claim 1, wherein the processor is further to: receive a publishing request from the intent publishing device; in response to the publishing request, authenticate the intent publishing device; and transmit an authentication message to the intent publishing device, wherein the authentication message indicates the intent publishing device is authenticated.
 3. The electronic device of claim 1, wherein the resource agreement indicates a resource to be used to implement the service.
 4. The electronic device of claim 3, wherein the resource includes a hardware, processor executable instructions, or a combination thereof.
 5. The electronic device of claim 1, wherein the intent publishing device is a claiming device associated with a second service.
 6. A non-transitory computer-readable storage medium comprising instructions that when executed cause a processor of an electronic device to: receive, from an intent publishing device, a service request and a resource agreement associated with the service request, wherein the service request describes a service the intent publishing device is to implement; receive a request associated with the service from a claiming device; transmit the resource agreement to the claiming device based on the request; receive a confirmation from the claiming device, wherein the confirmation is to indicate that the claiming device is to implement the resource agreement; and match the intent publishing device with the claiming device based on the confirmation.
 7. The non-transitory computer-readable storage medium of claim 6, wherein the instructions when executed further cause the processor to: receive a publishing request from the intent publishing device; in response to the publishing request, authenticate the intent publishing device; and transmit an authentication message to the intent publishing device, wherein the authentication message indicates the intent publishing device is authenticated.
 8. The non-transitory computer-readable storage medium of claim 6, wherein the resource agreement indicates a resource to be used to implement the service.
 9. The non-transitory computer-readable storage medium of claim 8, wherein the resource includes a hardware, processor executable instructions, or a combination thereof.
 10. An electronic device comprising: a processor to: receive a service catalog from a host; transmit a request to the host to request a resource agreement associated with a service in the service catalog; receive the resource agreement from the host; and transmit a confirmation to the host, wherein the confirmation indicates that the electronic device is to implement the resource agreement.
 11. The electronic device of claim 10, wherein the processor is further to receive identification information of an intent publishing device associated with the service.
 12. The electronic device of claim 10, wherein the resource agreement indicates a resource to be used to implement the service.
 13. The electronic device of claim 12, wherein the resource includes a hardware, processor executable instructions, or a combination thereof.
 14. The electronic device of claim 10, wherein the service catalog identifies a list of services to be implemented.
 15. The electronic device of claim 10, wherein the resource agreement is transmitted by an intent publishing device, and wherein the intent publishing device is to implement the service. 